package com.me.mygdxgame.renderer;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;

public class FontManager
{
	private static FontManager instance = null;

	private FontManager()
	{
		Gdx.app.log(FontManager.class.getSimpleName(),
				"Creating Texture Manager");
	}

	public static FontManager getInstance()
	{
		if (instance == null)
		{
			instance = new FontManager();
		}

		return instance;
	}

	public void removeFont(String imgFile, String fontFile)
	{
		AssetsManager.getInstance().unload(imgFile);
		AssetsManager.getInstance().unload(fontFile);
	}

	public void addFont(String fontfile, String imgFile)
	{
		AssetsManager.getInstance().load(imgFile, Texture.class);
		AssetsManager.getInstance().load(fontfile, BitmapFont.class);
		
	}

}